package _1ChapterOne._4ReplaceTempWithQuery;

public class Test2 extends BaseClass {
    private int getBasePrice() {
        return _itemPrice * _quantity;
    }

    private double getDiscountFactor() {
        return getBasePrice() > 1000 ? 0.95 : 0.98;
    }

    private double getPrice() {
        return getBasePrice() * getDiscountFactor();
    }
}
